package org.orz.story.member.biz.person.web.admin;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.orz.cloud.auth.UserUtil;
import org.orz.cloud.auth.domain.UserInfo;
import org.orz.cloud.common.result.ResultDTO;
import org.orz.story.member.biz.person.service.MemPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "测试")
public class MemPersonController {
    @Autowired
    private MemPersonService memPersonService;

    @ApiOperation("测试接口")
    @PostMapping("test")
    public ResultDTO test(){
        UserInfo userInfo = UserUtil.getUserInfo();
        memPersonService.test();
        return ResultDTO.success(userInfo);
    }
}
